﻿package {
	import flash.events.Event;
	import flash.xml.XMLNode
	
	public class BlinkEvent extends Event 
	{
		public static const CONNECT:String = "*connect"
		public static const DISCONNECT:String = "*disconnect"
		public static const CHAT_INCOME = "*chat_income"
		public static const ROOM_INFO = "*room_info"
		
		public static const USER_LEAVES = "*user_leaves"
		public static const USER_JOINS = "*user_joins"
		public static const LOGIN_RESULT = "*login"
		
		public static const ERROR 	  = "*error"
		
		
		public var attributes : Object;
		public var content : String;
		public var xmlNode : XMLNode;
		
		public function BlinkEvent(type:String,attributes:Object,content:String="",xmlNode:XMLNode=null)
		{	
			this.attributes = attributes
			this.content = content
			this.xmlNode = xmlNode
			super(type);
		}

		public override function clone():Event 
		{
			return new BlinkEvent( type ,this.attributes,this.content,this.xmlNode)
		}
	}
}